<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>console</title>
    <link rel="stylesheet" href="../../model/jsFn.css">
    <link rel="stylesheet" href="../../model/element.css">
</head>
<body>
<div class="catalog">
    <h1>目录</h1>
    <ul>
        <li>
            <p><a href="#profile">console</a></p>
            <ul>
                <li><p><a href="#jsFn_log">log()</a></p></li>
            </ul>
        </li>
    </ul>
</div>
<div id="profile">
    <h2>对象简介:console</h2>
    <p>对象提供了控制台输出的相关函数;</p>
</div>
<div class="jsFnModel" id="jsFn_log">
    <h3>log:</h3>
    <div class="shape">
        <h3>函数使用样式</h3>
        <p>console.log([tag],data)</p>
    </div>
    <div class="profile">
        <h3>函数功能简介</h3>
        <p>控制台打印log级别的日志</p>
    </div>
    <div class="version">
        <p>稳定性;2 - 稳定的</p>
        <p>新增于:v0.0.0</p>
    </div>
    <div class="params">
        <h3>参数列表:</h3>
        <ul>
            <li>
                <p>tag</p>
                <p>&nbsp;string&nbsp;</p>
                <p>输出日志标记,默认为"log"</p>
            </li>
            <li>
                <p>data</p>
                <p>&nbsp;object&nbsp;</p>
                <p>输出的内容,任何可以转换成字符串的对象,或基本数据类型</p>
            </li>
        </ul>
    </div>
    <div class="res">
        <h3>返回值:</h3>
        <p>null</p>
    </div>
    <div class="code">
        <h3>例子</h3>
        <pre>
            <code>
                console.log("asdfaso");
                //输出:    log:asdfaso;
                console.log("ddd","asdfaso");
                //输出:    ddd:asdfaso;
                console.log("cccc",{name:"张三"});
                //输出:    cccc:{"name":"张三"};
            </code>
        </pre>
    </div>
    <div class="error">
        <h3>抛出错误</h3>
    </div>
</div>
<div class="author">
    <p>by-草草</p>
</div>
</body>
</html>